home *** CD-ROM | disk | FTP | other *** search
Modula Definition | 1996-06-21 | 1.5 KB | 52 lines | [TEXT/MEDT] |
- DEFINITION MODULE MatInterpol;
-
- (*******************************************************************
-
- Module MatInterpol (Version 1.0)
-
- Copyright ©1993 by Olivier Roth, Andreas Fischlin,
- and Swiss Federal Institute of Technology Zürich ETHZ
-
- Purpose: Interpolation in 2D and 1D tables
-
- Remarks: This modulde is part of the Mat-library, which forms
- part of the RAMSES package.
-
- Programming
- o Design and Implementation
- O. Roth 23.04.90
- A. Fischlin 28/Mai/93
-
- Systems Ecology Group
- Swiss Federal Institute of Technology Zurich ETHZ
- Department of Environmental Sciences
- Grabenstr. 3
- CH-8952 Schlieren/Zurich
- Switzerland
-
- Last revision of definition: 28/Mai/93 af
-
- *******************************************************************)
-
- FROM Matrices IMPORT Matrix;
-
-
- PROCEDURE YI ( m: Matrix; x: REAL ): REAL;
- (* returns linearly interpolated value between adjacent points
- given by the elements of 1-d m closest to x *)
-
- PROCEDURE YIE( m: Matrix; x: REAL ): REAL;
- (* like YI, but does also extrapolate *)
-
-
- PROCEDURE ZI ( m: Matrix; x,y: REAL ): REAL;
- (* returns linearly interpolated value between adjacent points
- given by the elements of 2-d m closest to point x,y *)
-
- PROCEDURE ZIE( m: Matrix; x,y: REAL ): REAL;
- (* like ZI, but does also extrapolate *)
-
-
-
- END MatInterpol.
-